package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class DistinctPredicate implements Predicate {

    private int beginIndex;
    private int endIndex;
    private RowValuePredicand rowValuePredicand;
    private DistinctPredicatePart2 distinctPredicatePart2;

    public DistinctPredicate(RowValuePredicand rowValuePredicand, DistinctPredicatePart2 distinctPredicatePart2) {
        this.beginIndex = rowValuePredicand.getBeginIndex();
        this.endIndex = distinctPredicatePart2.getEndIndex();
        this.rowValuePredicand = rowValuePredicand;
        this.distinctPredicatePart2 = distinctPredicatePart2;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public RowValuePredicand getRowValuePredicand() {
        return rowValuePredicand;
    }

    public DistinctPredicatePart2 getDistinctPredicatePart2() {
        return distinctPredicatePart2;
    }

}
